package com.acoreful.acf2admin.commons.msg;

/**	
 *	错误信息
 *	00XXXX通用信息
 *	000200
 *	183100	账务处理-账务冲正
 */
public enum ResultEnums {
	SUCCESS("000000","成功"),
	FAILURE("000001","失败"),
	SYS_ERROR("000101","系统异常"),
	DB_ERROR("000102","数据库异常"),
	DATA_ERROR("000103","数据异常"),
	USER_NO_LOGIN("000201","用户没有登录"),
	PARAMS_ERROR("000301","参数错误");
	private String code;
	private String desc;
	
	private ResultEnums(String code, String desc) {
		this.code = code;
		this.desc = desc;
	}
	public boolean eqCode(String code){
		return this.getCode().equals(code);
	}
	public String getCode() {
		return code;
	}
	public String getDesc() {
		return desc;
	}
	
}
